package com.thx.privilege.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.thx.common.datasource.DataSource;
import com.thx.common.service.BaseManager;
import com.thx.privilege.dao.PrivilegeTypeDao;
import com.thx.privilege.model.PrivilegeType;
@Service
@DataSource("dataSourceB")
@Transactional(readOnly = true)
public class PrivilegeTypeManager extends BaseManager<PrivilegeType> {

	@Autowired
	private PrivilegeTypeDao privilegeTypeDao;
	
	public List<PrivilegeType> getAll(){
		return privilegeTypeDao.getAll();
	}
	
	public PrivilegeType getByTypeKey(String typeKey){
		return privilegeTypeDao.getByTypeKey(typeKey);
	}
}
